package com.bdzl.pub.entity.sys;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;



/**
 * 手机验证码记录表
 *
 * @author yangyicai
 * @email yangyicai@foxmail.com
 * @date 2021-03-23 13:59:22
 */
@Data
public class MobileCodeDO implements Serializable {
	private static final long serialVersionUID = 1L;

	//主键 ID，自增
	private Integer mcId;
	//消息类型
	private String mcType;
	//模版编号
	private String mcTemplateid;
	//手机号码
	private String mcMobile;
	//验证码
	private String mcCode;
	//短信内容
	private String mcMsg;
	//创建者
	private Integer mcCruser;
	//创建时间
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone="GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	private Date mcCreTime;
	//有效时间
	private Date mcValidTime;
	//发送状态 0：成功 1：失败
	private Integer mcStatus;
}
